Fix a variety of strict compiler warnings.