More Qt/MFC adjustments/fixes.