Use std::abs instead of abs

Review 1349 by @srh