Fix build on Mac OS X