Fix some warnings on Mac OS X