Isolate test targets.

Tests should only be built (and thus the dependency on check only required) when
building in debug mode. Users should not need check.
Enable miklogger to be toggled on and off.

Users may want to disable logging when distributing their program.
Ignore build directories.