Update TQueue.h

Not compatible with gcc.
Merge pull request #3 from progtologist/patch-2

Updated TQueue.h for compatibility with gcc and other compilers..