fixed compilation for PowerPC architecture on Mac OS X

tested on Mac OS X 10.6.8