Fix miscellanous 31-bit compilation issues in lithium-codegen