Fixing a few compiler warnings