Minor fix for issue found on SL5 machine when building EUDAQ

make sure ROOT is used in the main lib only when USE_ROOT is set and fix apparent garbage on line end in source file causing problems on a SL5 machine