feature(vdb): save CFLAGS, CXXFLAGS, and LDFLAGS to vdb

Mirrors portage behavior.