[util][math] add sqrt function in bg::math namespace; this function
calls std::sqrt for fundamental number types and ::sqrt for everything
else; it helps avoiding implicit conversions for fundamental number
types when ::sqrt is called (in particular, we avoid the conversion
from long double to double when ::sqrt is called);