Build fixes for cmake and qmake
Windows: Use native functions to check clipboard