In Makefile, add a check for Darwin systems and add appropriate LDLIBS flag
Merge pull request #73 from wonja/makefile_ldlibs

In Makefile, add a check for Darwin systems and add the appropriate LDLIBS flag
Aligns build system with autotools build and travis-ci

Implements BUILD variable to link shared or static
Expects libraries in lib directory as with autotools build