fixed dv.c compile issues