Added some resilience in the GetCurrentProcess 

Working on some hotfixes for FreeBSD 10 on which mono is a bit quirky.