Fix compiling warnings.