More blind MATLAB fixes to CMake build process.
Add oscillator debugging code.