Fix memory leaks, 1 random segfault, add directory for Hunspell creation.