OSX compatible build