Fix compile warnings with Xcode/clang compiler