Fix windows compatibility