Add check for Windows support before import Windows libraries