Hadoop maven profiles

This fixes the compilation problems for the `hadoop_v1` profile.