build: add -Wno-error=unused-result to target cflags