Compile on OSX and Linux