possible linking fix

I believe that linking using `CXXFLAGS` is overkill and may cause bugs. Can probably just add the `root-config --ldflags` output. I'm also not sure how many of the standard root libraries we need. It seems to link fine with just `-lTree`, but I'm not sure about running.