Some parser and compiler improvements