[hbase] Support build time profiles for Hadoop 1 (default) and Hadoop 2

Activate profile for Hadoop 2 with -Dhadoop.profile=2.0
Local changes to build.sh to build with the Hadoop 2 profile