Fix build on OSX