cmake: link with libsnappy (if present)
cmake: compile db_bench