Support .NET 4

* All: Added project configuration.
* All: Against the profiler to be callable indirectly, disables security transparency checks. See also the following thread: [c# - Why do assemblies with the SecurityTransparent attribute cause instrumented code via a profiler to throw a VerificationException? - Stack Overflow](http://stackoverflow.com/questions/7218280/why-do-assemblies-with-the-securitytransparent-attribute-cause-instrumented-code)
* All: Against the profiler, added the way to be easy to debug between the managed code and the unmanaged code.
* All: Added assertions against nullptr because the some API of the infrastructure became returning null value.