Fix building on Mac OS X