Ported simulator from QT to POSIX standard