Make it possible to export GetNamedResource() from a windows shared library