Add -Wno-pedantic only if supported by compiler