Fixes issue when building the lib for archives
Merge pull request #11 from micpringle/master

Fixes the issues when building the lib for archives