Use malloc/free for dasm globals

This will hopefully fix the build for windows.
Note that I windows calling conventions are different
from Linux or any other system, so I'll need to modify
emit_call_c for it to work.