Windows compilation

Windows Qt application crashes without obvious reason, even though it is using the same code like Linux application.