Refactored version of code.google.com/hadoop-gpl-compression for hadoop 0.20