patch files to support Hive 0.12 API signature