Several compiler improvements.