Lintian compatibility issues

Using lintian to check the created .deb package show some issues, which can be fixed with this pull-request.
I tried to keep the current behaviour as good as possible, but there are some constraints enforced by lintian, which could make your current gradle build configuration break.

Please give it a try and me some feedback, so that I can improve the necessary changes to maximise compatibility with lintian. Thanks!