fix the prototype of settimeofday to follow the original BSD declaration
global cleanup to use the new syscall interface
initial check-in, version 0.5.0