Include getopt dependency and link the ROOT matrix libraries to the HpsEvent shared library.