stackvm: support calling syscalls

system calls permit external native functions to be incorporated into a VM.

Add a test of the mechanism as ex2.c
stackvm: syscalls can accept arguments

foreign function interface can accept arguments.
made VM into a library that can be linked into any program.

TODO: can't return values from syscalls, always 0.