build system working on OSX