NH-3683: Fixed compilation warnings

https://nhibernate.jira.com/browse/NH-3683