Allow for failure with Visual Studio 2012.

std::log2 is available only since 2013.