compile fix for OSX