Move library aggregation into common CMakeLists.txt; add missing libs to DolphinQt.

Fixes DolphinQt build (on OS X, anyway) when libav is enabled.