Clapper: US, Pakistan spies rebuild ties