A little hack to make it compile on OSX