add libdir support to configure patch by (Luca Barbato )lu_zero gentoo org)