Fixed M1 legacy build