convert libraries to local.