build gmp into agent opt