Fix bug to allow static library creation
Merge pull request #340 from juagargi/static_lib_fix

Fix bug to allow static library creation