SYSV/GNU resolving for both 32 and 64 bit

Tested against 'surgeon' and the four test programs that use the four different targets:
* 32 bit gnu hash
* 64 bit gnu hash
* 32 bit sysv hash
* 64 bit sysv hash

Also cleaned up and standardized 32 and 64 bit versions of the same code.