use --libdir to avoid <prefix>/<target>/lib64 confusion (more)

follow-up to commit 593ab5a7068d6142903ab839237100e92a5071f3