Resolve some compilation warnings on OS X with clang compiler

Compiling on OS X using clang reveal some compilation warnings.