parser: some compilation fixes