fix snappy build error on some linux