Added preliminary code for Windows support.