replace more bsd err macros