fix for osx build