Cross-compatibility for pickling in Windows