Fixed broken tests, fixed build against different libmemcached versions ...

...(hopefully) and misc error fixes