Remove dependency on std::stoi which is not available on MinGW