Fixed windows compile errors.