fix leveldb and .gitignore files

Fixed build and git problems.