common: add stacktrace() and ac_alloc()
varmap: fix warning
stack_machine: fix warnings