#415 custom mainclass for Windows

This PR adds an option to set a custom main class on Windows