OS X clang compilation fix by allowing certain warnings