added cppflags to top-level lib build