Make an application as both GUI and Console