CLI: Improve nlmeans-tune logging and error handling.

The latter fixes a compiler issue.
CLI: Remove unnecessary include in last commit.