qt-platform specific code separated from rhosimulator specific code; code cleanup