cmake: Fail if undefined symbols are used
Make the linking of the shared library fail when undefined symbols are
used. Linking undefined symbols in a shared library normally works and
the linking of the binary using the shared library fails. We also
compile some example applications and they failed already.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>