build fixes, removal of qwidget code