Fixing compiler errors (mostly caused by typos)