Move hdfs library initialization from SNAP into the hdfs library itself,
to make the API simpler for other users