Make debugging disabled at compile time

Get ready to library-ify.

CR: check