hip2bmp: HIPHDR_EXTEND endiandess flip.
hip2bmp: DEFLATE decryption case.

Also few fixes to ar_unpack..
And moved SEGS code to new file, as hip2bmp needed them.