Enable memcached installation from source

This pull request enables compilation of memcached from source. A prefix for the compilation path can also be set.