dllimport must be removed if link to a static lib. now it's not removed because it's impossible to detect whether we link to a static lib