Shark 0.11 ojdk7

Porting existing and new Hive patches to run Hive 0.11 on JDK7 (open and otherwise).