added #include <algorithm>

was showed in https://github.com/SonyWWS/LevelEditor/issues/1, works for me on Visual Studio 2013 too