Merge "Allow building multi-res encoder with --shared"