Update magic library