In Makefile, add a check for Darwin systems and add appropriate LDLIBS f...

...lag