Fix lib dependencies