r7449: add ctype.h header to dn expand function