Fix various minor compiler warnings.