Update Makefile
Merge pull request #132 from kjk/master

Improve building of shared library so that it e.g. works with Go bindings