BUG: fix std::list increment assertion failure on Windows