fixes for compiler warnings