Fix some windows app crashers.