freerds: fix includes of memory.h