Use FILE pointer for luaL_Stream
Include lualib.h constants
Abstract code generation to a higher level than fprintf

This should make it easier to add more types and constants later.
Make prebuild script a little more robust
Quote LUA_INCLUDE when passing it to gcc
Use appropriate exit code constants
Make remaining ffi struct members public