build shared lib for GMP