Fix warnings on OSX compile