The ADAQ libraries for controlling CAEN data acquisition hardware