Workaround for code portability.

INT16_MAX and so on are not standard for C++ before C++11.