Allow compilation without libnettle
Fix memory leak