Revert qt4 compatibility and other changes due to last strange core dumps.

This reverts commit 6a69e87c82d98e0d2afa1303c808634fce0dcb60.