CMake: only append to LINK_FLAGS if they exist

Prevents an error similar to:
ERROR root: props-NOTFOUND: No such file or directory