Added #include <algorithm> to MshLayerMapper.cpp to fix compile error.