creating fork of ldd method for aix