Add StringRef X_init support for Win32

Requires testing!