Changed the target .NET to 4.0 because the code does not make use of 4.5 features and this way it can be compiled with VS 2010.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Replaced a range-based for to ensure VS C++ 2010 compliance.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge branch 'master' of https://github.com/mono/CppSharp
Added generation of function pointers.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>