Fix the Windows build, and also fetch the module name.