[C++] fixed issues compiling under windows visual studio 2013. VS13 does not support constexpr, boolean types in preprocessor, and undefed min and max as macros. Still many warnings that need to be looked at.