fix building using internal UHD.
Add virtual destructor to make picky compilers happy.