Fix compile lib dependencies