That is zlib1g-dev - zed ell eye bee one gee, not ell gee.
Regarding your second error, just prior to that the instructions
create the /var/lib/named/dev folder, then the mknod instructions create the null and random devices in that folder. I suggest you check if they exist. If not, repeat until they do.