Fix some warnings on !MONO_ARCH_AOT_SUPPORTED targets.