[C++] update statemap.h from SMC
[C++] use g++ options