cmake: move Wflags to build type pedantic