Fixed several warnings when building on Mac OSX