fix build with non-static builds
Merge pull request #28 from aseigo/master

fix build with non-static builds