NH-3683: Fixed compilation warnings

https://nhibernate.jira.com/browse/NH-3683
Why is this removed? Are we going to remove `ProjectionsExtensions.YearPart` and other?