Disable dllimport declaration on Windows with gcc

The declaration as it is used now produces compiler errors on MinGW.