fixed several compiler warnings