Get rid of compiler warnings.

Minor changes to silence compiler warnings:
- Locally disable Obsolete warnings, we're testing this until the Obsolete methods disappear
- Initialize public member only used via reflection

This makes it way easier to see if we introduce new warning noise.