Fixes makefile to use CFLAGS, CPPFLAGS, and LDFLAGS.