Fix build issue on windows with psapi