OS X compile fix