Fix new compiler warnings triggered by the addition of compiler flags