add snappy compression & ondemandplus fix
fix gcc warning