Fixed build warnings on OSX