Updated build flags and a compiler warning with Clang 4.2