fixed for osx build