fix library install destination for packaging aarch64 and x86_64