Improve building
Filter out unknown warning options in the diagnostics