fixed NIDOM compiler errors