Repair nxhtml warnings and install magit