SECOND AMENDMENT TO CREDIT AGREEMENT, WAIVER, ACKNOWLEDGEMENT AND JOINDER