revert changes to compress and decompress

the compress and decompress methods should not return the original data
pointer, otherwise it is not possible to check if compression /
decompression actually happened or not.