Use std::abs(int) portably.

Code review feedback from Reid Kleckner on r207806.