fix some error while for MinGW and .gitognore