Fix aot compiler compilation errors when the llvm version is 14.0, and clear one compilation warning of thread_manager.c.