Fix unused variable warning
Fix shared lib build
Rename leveldb to rocksdb in C api
Merge pull request #31 from sepeth/c-api

Rename leveldb to rocksdb in C api
Merge pull request #29 from sepeth/fix-shared-lib-build

Build shared lib and put linker flags to the end
Cleaning up BackupableDB + fix valgrind errors

Summary: Valgrind complained about BackupableDB. This fixes valgrind errors. Also, I cleaned up some code.

Test Plan: valgrind does not complain anymore

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14529
fix comparison between signed and unsigned
Fix another sign and unsign comparison in test
Don't LogFlush() in foreground threads

Summary: So fflush() takes a lock which is heavyweight. I added flush_pending_, but more importantly, I removed LogFlush() from foreground threads.

Test Plan: ./db_test

Reviewers: dhruba, haobo

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14535
Get rid of LogFlush() in InternalIterator