Avoid using REG_NOERROR

Not all systems define this (IRIX 6.5 doesn't).  Comparing to 0 is not
terribly less readable, so do that instead.
ltrace now compiles for x86 Android.