fixed windows compile issues