add tweaks that luaffi needs to convert numbers to pointers