Made libflate functions return Options instead of outright failing