Fix cg library path.