Changed #defines to std::numeric_limits

UINT32_MAX gets defined out