Minor fixes

Two minor fixes:

Makefile:
Allow this to be compiled on BSD because the find parameter of '%h' is a GNU'ism only.  This new patch finds the file and uses the more widely

malloc.h header.

I think that malloc.h shouldn't be used anymore.  Most modern Linux (and OSX) distributions don't seem to have it.  If you have a really old Linux distro that you need to support you may wish to use enable this header. 

You can accept/deny both of these based on your use case.    Thankyou for your time.