Use pkg-config for libuuid.
Replace own Atomic implementation with std::atomic.

But leave the Atomic<T> alias. Remove dependency on glib.
Make Haruhi build without need for Qt-3 compatibility mode.
Remove own implementation of enable_if/is_base_of.