[MAINT] Fix miscellaneous compiler warnings.

As the title says.