Fixed issue with uninitialized variables, old standards version and other lintian errors