Build fix for Windows
Implement "feature disable" for Windows

fixes #7418