Use std::numeric_limits instead of UINT32_MAX which is only available in...

... c++11

Also use C++ headers as this is C++ code