Fix for OS X compile