Fixed abs function on osx