add --disable-gfan option to configure script