Compile fix for OSX