Fix windows build and push refactoring of texcoord handling.