Mapjoin support, stabilization and tests failures fixes for hive-0.11

This is a hive part of our hive-0.11 enabling efforts.