Fix OSX compiles