make reallocn() a better replacement for xcalloc(); make it resize in
place, not leak on failure and return a err.h code
merge KRL change