Fixed compile for OS X.

Compiled for ppc, ppc64, i386, and x86_64 with Apple's GCC 4.2 and OS X 10.5 SDK.