Support newer Mingw (use std::thread or Boost)