Compiler warnings on OS X