corrected customMessageHandler initialization problem on Qt5, INI file settings for environment handling, better Windows support