Test fixes for syscalls

Now that I'm not changing things blindly to make tests compile, I've found there are some issues with the way `block.c` and `mmap_shared.c` were modified to compile on 64-bit systems.

During some debugging of `clone.c`, I also discovered that it needed to be patched for wider portability.