Use CPPFLAGS where appropriate

This is based off of [GNU Make's implicit rule](http://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html).