Fix issue 317

This is the exact same fix as mentionne din the GC issue,
cf. https://code.google.com/p/libarchive/issues/detail?id=317
Merge pull request #53 from NiLuJe/fix-issue-317

Fix issue 317