fix gemstone build