mint-arena: update q_shared.c/h for spearmint changes

See spearmint cef4cd1e60a214b573b51e36fd1942effe696de6 for details.