convert some libraries to local.