copy threading libraries and also set system library path