bug fix: some configures are only work well on windows. limit its usage