Merge commit '81241a944099014cc56929a99355cede91ada83c' into HEAD

Conflicts:
	CMakeLists.txt
	cmake/config-ix.cmake
	include/locale
	src/locale.cpp
	src/thread.cpp