build: clean cmake file
build: add debug and release specific flags
logger: enable compiler to trim log->debug() and log->spam() as no-op outside of debug mode.