Fix memory.h patch
Reenable dynlink