Initial conversion to C
Re-inline 32-bit and 64-bit conversion functions
Internal linkage for userdata names
Internal linkage for compact callback
Remove unnecessary casts