Move flags to toplevel, add warning flags