Enable building on mac osx