fixed various compiler warnings