CLI: Improve nlmeans-tune logging and error handling.

The latter fixes a compiler issue.