Moved some static functions out of CToken

Fixes compilation on 10.9 with its fancy new C++ lib where deque suddenly needs a full definition of a class before you can even mention its name near a deque.