quick hack to build on OSX 10.8