err: use methods from err.h instead of strerr.h