Added missing "static" keywords in TGettext; fix #518