Basic LZF codec, compatible with standard C LZF package