Try to backport samestat for windows.