Fix OS X compile