fixed dll linking