Really fix dependent libraries with static libs.