wam: Remove any Qt dependencies and port to CMake

No match.