fixes for Windows related to missing-module exceptions