64-bit: get rid of 64-bit warnings in emitter

Doesn't really functionally change a lot, but if we ever want to get this
working on 64-bit... baby steps.