Fix a few compiler warnings