Use explicit self for to_str
Fix windows cfg