Fix for OS X build