Fix Windows compatibility