Fixed a dependency on my Main class and made a window icon optional