`resource` is not available on windows. Fixes #9640.