added release mode for windows with no console window