Merge pull request #37 from ilveroluca/develop

Two bug fixes and minor clean-up
Merge pull request #28 from ilveroluca/write_through_buffer

Access data to be written through the buffer interface
Restore correct hdfs.[ch] files for Hadoop version 1.0.4

The version had been exchanged with some other one
Correct use of hdfsStreamType