Fix memory leak in EmergeManager
Fix errors/warnings reported by valgrind
Fix non-smooth non-shader node shading (Fixes #1436, regression by commit a0f78659f31abd)
Improve error reporting in leveldb backend