Tweak sqrt() usage to make MSVC be quiet (since it replaces <math.h> with <cmath> when compiling C++)