corrected compilation bug on windows