Fix build for Apple's OS X