Compactness theorems for abstract evolution problems