Flip-chip packages