Fixed inconsistent dll linkage warnings