Imlib2 trouble fixed

Written late in the morning

Charlie Allom provided the solution for a nuisance that kept Apache::Gallery from working since the last imlib2 upgrade in pkgsrc. Closed my own PR pkg/29054.