Fix build for osx