Use std::abs instead of ::abs : fix #663

Replaced `::abs` with `std::abs`.