Minor ts module improvements for CUDA implementation

1. Added `cvconfig.h` header, because `ts_perf.cpp` uses `HAVE_CUDA` macros.
2. Record cuda gpu name to output report.