Fix Mono build

Some versions of NLog doesn't support Enum.TryParse.
Using Enum.Parse with try..catch instead, also added internal logging if
the layout couldn't be converted to MailPriority