OS X extension fix

I added dynamic extension lookup for the libmemcached shared libraries.

I was unable to test if it was correct to also do that for the amd64 architecture, but I assume it's fine.