Fix the build on OS X