Only add CPPFLAGS and LDFLAGS paths that exist on the drive.

Some packages don't create any libraries or have an include directory, so
verify that the /include and /lib exist before inserting them.