Use custom comparator in threadmap for pthread impl with mingw