fixed bug in CPPFLAGS restoration