[c] dump stack and allocated variables with error handling
[c] fix ooc build error on debian env
[c] ooc inherit simple way