Compile and run tests on OSX