Fixed building on OSX