Fix errors for windows installation