aot compiliation warning fixes