Fix OSX compile