Added snappy support
Fixed deprecation warnings