Re-factors linux.fork to using tools. Fixes an uninitialized variable in linux.syscall_pwait. Changes using printf to using tools in tests linux.exit, linux.longjmp, and pthreads.pthreads.
Please note the stdout change above is somewhat random, and there are various tests left using printf and a future patch should address changing all remaining tests to using tools.