Fix for dependent libraries with static libs.