astro/kstars: fix linking with lld7
kstars tries to pass -z nodump to the linker, which is not supported by lld7.
This patch adds a little CMake function to check whether the linker accepts that
flag,
and if not does not add it.
PR: 230603
Reported by: jbeich