Resolve compiler error about ambiguous std::abs(int)