Windows compatibility patch