Fixed a few compiling errors.