Fix windows compile problems.