Add get_libdir call in an attempt to fix https://bugs.gentoo.org/show_bug.cgi?id=500156