Fixing a couple reference versions and logging for nhibernate