Fix Gendarme defects for Windows