Move FNV hashing from librustc to libstd

The FNV hashing code in rustc is generally applicable and very useful for anyone who doesn't need cryptographic strength. This should help with #11783.