grextras: changes for swig work in gras