Add own implementation of archive entry extraction to allow custom filters.
Fix magic number check for endianness.