Fix for Mac OS X build