fix windows compile bug