Xlocale.h not found on Linux

As an addition to previous answers I can tell there is a UE4_LINUX_USE_LIBCXX environment variable. Just

export UE4_LINUX_USE_LIBCXX=0

before build and UBT will use system glibc++ instead of shipped one.

BTW. there is a commit in 4.18 branch which fixes the problem.