Move debugging stuff out of the way at compil time when not enabled

You now need to set the DEBUG=1 environment variable to have debug
messages.