upstream commit 0604154e006e88e9e7f82d8ee5fd076bda206613
upstream commit 91632c8ac97fa3daffe4ff8f1391735b5d6805e6
upstream commit 1931d3cb20a00da732c5210b123656632982fde0
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging