fix for LDFLAGS

Applying a fix to Makefile based on https://github.com/jordansissel/grok/issues/8
Note, this has not been extensively tested