cleanup socketcall syscall interface to ease porting to sane(r) archs
initial check-in, version 0.5.0