Fixed compile on MinGW GCC.

@Subv: About std:to_string: Clang has to use MinGW's headers libs (namely basic_string.h), which define _GLIBCXX_HAVE_BROKEN_VSWPRINTF and thus disable std::sto_string, std::atoi and others. #undef'ing it does not work, but I'll leave it there as a reminder.