Make Plan build on Windows
QPair should not be used as a base class for exported things,
see also https://bugreports.qt.io/browse/QTBUG-49658
Some assumed std functions are just gcc things and not readily available in MSVC
Some exports don't work right with MSVC, also fixed
Differential Revision: https://phabricator.kde.org/D9253