It changed because A7 uses a different compiler.

I'm probably stupid, but I have not yet understood what problem you have with engine_getscript and what if statements you're talking about. Can you explain?