add missing include files

This used to compile, but with the latest msvs, it complains (rightly)
about not finding std::min and std::max.  It should compile once again.