Ignore luaL_unref(0).
Fix compilation error on Android.
Catch unhandled C++ exceptions and translate them into lua errors.
Use custom, platform-independent format to store precompiled bytecode.