Try to fix a compilation error on some platform.
use ::abs for integer types instead of std::abs