Bugfix

Fixed crash when extracting older filesystems (buffer was not
allocated). Replaced most allocations with vectors to fix other
potential issues.