fix DSO linking error
Merge pull request #8 from NiceandGently/master

fix DSO linking error in fedora and arch linux