Finally implemented native functions correctly.
XPVM now reads the object file into memory and goes through for each
native function reference and patches the correct bytes with the const16
needed for the specified function.