From where do you have this version? I just checked the TRichMemo distributed by the OPM, and it compiles flawlessly.
Or is your version too old? It's been January when the {$IFDEF MEDVAR} was added to fix a change in the parameter list introduced by FPC.