Refactor CMakeLists for DolphinQt, paves the way for Qt5.
Yet another fix to policies.