OSX compile fix