Changed macro for triggering debug logging to _DEBUG_OUTPUT as DEBUG
on certain toolchains clashes with built in macro.
Added configuration options to cmake. See README.md