Revert "try to fix a INT_MAX problem"

This reverts commit 0951815539f4e80cc25a7d59c3df0187d4545be2.
try to fix some c++11 issues
try to fix a clang issue
revert clang creg fix