Stop calling fork directly.

Calling fork directly from Java code was causing crashes, because it needed
to run using only signal handler-safe methods.

Created a new, tiny shared library that exports a function that forks
a PTY and execs a process. The code expects to ship with every
architecture's shared library in the jar, copying out the correct one
at run-time.