Loss Compensation and Superresolution in Metamaterials with Excitations at Complex Frequencies