Fix warnings: -Warc-repeated-use-of-weak, -Wobjc-missing-property-synthesis.