configure: correctly discover -W options for clang