Improved support for libhdfs