Add memory patches from Feep. Fixes #2.