modify exp/lib.c for high version of gcc