Windows clean and portability debug