SERVER-14015: Fix S2 Compilation on GCC 4.9/Solaris by choosing sqrt(double)