Fixed unnecessary virtual declarations in classes without inheritance (only detected by the SLC5 compiler).