Detect whether __COUNTER__ is available

fixes #7040
Enable unity build for RPM/Debian packages

fixes #7041