Merge pull request #55 from Hamcha/master

Removed bash requirement
Merge pull request #57 from Hamcha/master

Fixes segfaults when using LZ4
Attempt to fix some Coverity detected leaks