Corrected compilation errors Win