Check for windows before trying getResUsage, comment some code.