configure cmake for debug build, on by default

merge this or the commented out version.
i would prefer to have it on by default,
to allow us to debugright away if people complain about crashes.