Fix cityhash for non-glibc systems where byteswap isn't defined. Define it manually instead. Also, fix harmattan building of Qt frontend.