Fix conditional libraries