fix abs problem when dealing with VS2010