waf: use the correct WERROR_CFLAGS in CHECK_CODE