fixing abs() for gcc