Fixes for Memflex stuff and Entity Framework.