fix tk compilation