Defer compilation until first public call

This is needed to let all plugins register their natives because we get their
addresses during compilation (in release builds we emit direct calls).
OnJITCompile should return non-zero by default
Tiny refactoring
Update subhook
Add misc/return_value test

This also covers issue #34.
Add test for issue #36