Fix CHY_IMPORT under MinGW

Under MinGW, symbols with dllimport storage class aren't constant. If a
global variable is initialized to such a symbol, an "initializer
element is not constant" error results. Omitting dllimport works, but
has a small performance penalty.