Change to shared build for memcached + pthreads