hacks to compile OSX