tree: use TARGET_{CFLAGS,LDFLAGS} instead of the package default