Retry -O3 for optimization (hopefully I don't regret it)
Rework the wave editor enabled checkbox to automatically check/uncheck
itself depending on whether the wave editor tab is the current tab.