Fix lintian errors and warnings