cmake: use extra compiler warnings only on gcc6+