Improved dll linking