Define GTS_TABLE and use it for all build patterns

It reduces #ifdef in *.cpp.