windows compatibility, fixes