Fix Mac OS X compile warnings