Fix includes for std::min and std::max (h/t Hugo Sender)