fixing build for osx