check that memory allocation works
close zip before exiting on error
check for libzip doesn't work on windows