Bug 939498 - Properly include <algorithm> for std::max. r=bsmith