Create AX_CXX_HASH_FUNCTION macro to check for template class std::hash<T> in <functional> header. Add AX_CXX_NAMESPACES as a dependency.
Add AX_CXX_HAVE_HASH_FUNCTION to configure.ac.
Store a hash of the path as a key in poll_watcher internal maps, otherwise use the path itself.