MAC OSX Compile errors