Changes so OSX will compile.

Will need to correct this so it will compile on Linux.