Fixes for new NHaml and NancyFx versions