Fix hyperlinks for glossary entries

glossaries package needs to be included after hyperref package for hyperlinking.