misc. fixes for AIX stuff, recommended by magnum