Merge pull request #234 from eile/master

Fix for dependent libraries with static libs.
Really fix dependent libraries with static libs.