[package] compile lvm2 with fpic when necessary (#6930)