Qt: simplify Win32 and Mac detection