gd-last: fix EL-5 build