simplify and speedup code by using std::map

use C++ containers for mapping strings to ints.

this should speed things up on average.
e.g. running 100000 iterations on each GL_ define used in the help-patches
takes about 4200ms with std::map and 11261ms with strcmp

doing the same on all yields 786682ms (strcmp) vs 144738ms (std::map)