make CHECK macro calls safer for multistatement operation; dont disable ...

...DEBUG macros on non-OpenWRT platforms

this allows CHECK to be safely called in situations like this, which would previously throw errors:

    if (foo)
      CHECK(bar, "baz");
    else
      CHECK(bar, "baz");