fix missing va_end in prctl syscall wrapper
global cleanup to use the new syscall interface
initial check-in, version 0.5.0