Fix build for osx.