fix static building issue with TGUI