Fix compilation on windows, albeit in a hackish way