setup: look in multiarch paths in GNU platforms

Just like it is done as "kludge" in linux, add the multiarch library
paths for GNU platforms (e.g. GNU/kFreeBSD and GNU/Hurd) so additional
libraries in multiarch paths can be found (enabling extra image
formats).
Merge pull request #511 from pinotree/gnu-platforms

setup: look in multiarch paths in GNU platforms