upstream commit 67a4a12d61bfb10b2410b53c5a43ef9b4a03de7d
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