build: Use {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD for helper program.