Fix miscellaneous compilation warnings.