if hadoopVersion is passed to build is 2.x, use correct libraries
Merge pull request #22 from jessicasw/hadoop2

Support building against Hadoop 2