Check for err.h and work around for AIX