Added compression format
Following Branimir's changes for compiling on Linux.
Added compression format enum and encoded it with the compressed data so that the compression algorithm can be automatically picked up.