Fixed small compiling errors.