Second Amendment, Consent and Waiver to Amended and Restated Credit Agreement and First Amendment to Guaranty and Collateral Agreement