Fixes a llvm compiler error: ambiguous call to abs