Fixed lintian issues and bug in build script.