Inithooks for tklcore patch.