possible linking fix

I believe that linking using CXX flags is overkill and may cause bugs. Can probably just add the `root-config --ldflags` output.