fix windows compile error