Patch for that is already upstream http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/rev/1fc6ad6e7c7a I can confirm that it compiled fine with this patch.
Fixed in hugin-2011.0.0_rc1 in CVS.