Added support for classes without headers.