rocs: fixes for compiler warnings