[fix] build issue with std::min on some platforms.
[win32] add boost/shared_array.hpp needed since 92c7bf0e682a63baee3cd81a36468a346b16d5a8