Added missing STL include of <list> in main.h
Removed duplicated include of <sstream>
Added comments on the background of min/max macro definitions and STL header includes
(grafted from dbaf82e0cf3d31f8c2557bdd30980f4cc6bcf677)

--HG--
branch : 3.2
extra : source : dbaf82e0cf3d31f8c2557bdd30980f4cc6bcf677