nyacc: minor cpp fixes