changing string hash function to use the gnu namespace