fix for HP-UX building

After this workaround, it builds on HP-UX:
HP-UX migs01a B.11.31 U ia64 0841004181 unlimited-user license
aCC: HP C/aC++ B3910B A.06.20 [May 13 2008]

http://www.cmake.org/Bug/view.php?id=14386