Fix the compiler warnings