Migration to .NET 4.0 and NHibernate v4