When building a PE DLL (MinGW), variables exported from a DLL must be explicitly marked as dllimport when using them.