changed pointer function option for NSHashTable in OS X 10.7

NSPointerFunctionsWeakMemory is not available in OS X 10.7
improve OS X 10.7 support

Switch to respondsToSelector: and silence warnings.