re-impl sym-table without C++