Fixed compiling warnings.