Really fix dependent libraries with static libs.
Merge pull request #235 from eile/master

Really fix dependent libraries with static libs.