properly handle NTL CPPFLAGS and LDFLAGS