fixed build issue for case when gap is part of sage (5.7) installation