THIRD AMENDMENT TO CREDIT AGREEMENT Dated as of August 11, 2016 among PLAINS ALL AMERICAN PIPELINE, L.P., and PLAINS MIDSTREAM CANADA ULC, as Borrowers,