build: add -Wno-error=unused-but-set-variable to cflags for gcc 4.6 and newer to...