fix cdt main library path
ensure all libraries are extracted before loading any