Fix several warnings in Windows build of type:

redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]