Fix some warnings on OSX