Flip-chip process improvements for low warpage