Fix build breakages for FreeBSD/ia64 with GCC 4.2.

These changes fix the following build breakages for FreeBSD/ia64:

http://docs.freebsd.org/cgi/mid.cgi?201301182151.r0ILpVw8026162
http://docs.freebsd.org/cgi/mid.cgi?201301212022.r0LKMwJI012550

Jung-uk Kim