Fixed miscellaneous warnings.