Link to shared library, fix from Gasol, fix #5