fixed aix portability problems