Another attempt at dealing with the fact that some compilers define round() and others don't