Fix glossaries on <tl2012

Fixes compile problems of @azet as told in #66