Fixing errors when compiling on Mac OS X.