Isolated Windows-specific code in anticipation of adding GNU/Linux support.