Fix compiling errors.