configure: add support for multiarch layout in libgc search

This is relevant on recent debian systems.