Cleanup jthread and fix win32 build
Fix MinGW build
Merge remote-tracking branch 'minetest/master'

Conflicts:
	src/map.cpp