Structure-preserving General Linear Methods