Use $(get_libdir) over hardcoded lib

Fixes https://bugs.gentoo.org/show_bug.cgi?id=510040