SECOND AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT TO U.S. SECURITY AGREEMENT