hdfs cleanup and compile test against CDH 4.4.

Fixes hdfs access for public hadoop distributions. Compiles and tested (using db_bench) on CDH 4.4.