use ttypes from hive_metastore instead of missing global

Fixes #1