Hive fixes

The HCatalog patch has already been submitted as a pull request, but hasn't been merged yet. And the other patch installs hive's scripts directory which is needed by hive itself.