fix shared lib loading on MacOSX
fix shared lib loading on Linux
Merge pull request #1 from n3rtrivium/Makefile-fix

Makefile fix