[macOS, Mono] Fix "Wdeprecated-declarations" build error.
[macOS, Mono] Fix "Wdeprecated-declarations" build error.

(cherry picked from commit 5d54c015b2dd0a26237c00788be25b3da4cfe3dd)

ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot