Fix some miscellaneous compiler warnings