Fixed exit code passing on Windows XP