bug fix

Fix compile enviroment to prevent crash on some XP machines