main window code cleanup
cleanup and portability changes to RetroAudio