minor fixes on compiler warnings