Lots and lots of cleanup.  Trying to use a cohesive style across the board, with consistent function naming, variable initialization and all that.  Finally compiles cleanly with libmemcached 1.0.17 installed via libmemcached-packages.
Merge branch 'master' of https://github.com/tobz/mod_auth_memcookie