Add dependency on folly and use ScopeGuard from there.

Fixes #14