Fix the build for Mac OS X