Compute various hash functions at compile time with C++11.