compile and work on osx