Feature Distribution Shift Mitigation with Contrastive Pretraining for Intrusion Detection