Avoid segfault while scanning some processes in Windows