Don't import resource module on Windows

Fixes part of #1435