fix a few compiler warnings