Fix buffertools
Fix leveldb 'too many open files' bug (maybe)