Consolidate cppflag and ldflags