fixed some windows compatibility bugs