compile fix for osx