fix windows compile and running error