Preliminary jit graph compilation.

This doesn't actually compile anything useful, however it will
construct a proper function prologue and epilogue.  I've also
changed the platform 'mmap' functions so that I can use them -
they weren't used before.