Some changes for NancyFX