Fix some build bug in windows