[C API] Missing UDEFS for simulator code in common.mk

Thanks for bringing this up. I tried to describe the issue here but I think I ended up just confusing myself :grimacing: