Fix linkingflags override by actually appending

As per summary the CMAKE_SHARED_LINKER_FLAGS were overriden instead of appending. So if you set LDFLAGS for any value it was lost for the libraries.