#415 custom mainclass for Windows