Make optimized build working with ICE