Most of the changes in this patch are to provide more
verbose error messages when a problem occurs in
findalldevs(). It's obviously a total hack (using tmpstr and
snprintf), but unfortunately SWIG doesn't accept variable
argument functions. Really there are only two parts to
this patch that are needed to make findalldevs() work
under AIX 4.3, they are commented appropriately.