Fix build under OS X