Fixed a few compile bugs.