generate optimized dll