Fix build on windows

Then why pass the variable in at all?