mk: adjust gcc flags for new gcc 7 warnings