Added include for <algorithm> needed on linux for fix Justin recently made