Hi,
perhaps you're using an old ns-3 version (baaad), because on mine everything works.
In order to fix the error, include the helper header:
#include "ns3/flow-monitor-helper.h"
However, as a general note, you should NOT use FlowMonitor to track AODV traffic. The data provided by FlowMonitor are wrong in case of multicast/broadcast packets, and there is no guarantee that the number you're getting are corresponding to anything meaningful.
The point is: FlowMonitor has never, EVER, been meant to track multicast/broadcast traffic, and the data for that kind of traffic has not been validated.
This "feature" has been removed from ns-3 (i.e., the bug was fixed).
To collect data for user traffic with AODV, please use the stats module.
T.