lib: cmakelists: disallow undefined symbols when linking