small makefile change for OSX and Linux

add CPPFLAGS and LDFLAGS to the compiler invocation

this is needed for homebrew on Linux, which uses them to point to the
.linuxbrew directory