Fixed bug cause enum projection error in EF on systems without .NET 4.5 installed.