fix building on OSX with proper shared object extension
Merge pull request #55 from revmischa/master

fix building on OSX with proper shared object extension