lib & contrib & tests: update users of `cflags` and `ldflags`