only set CPPFLAGS / LDFLAGS if they aren't set yet