windows: compilation fix attempt
code cleaning