Add 'extern C' if simulator is written in C++