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>
Added generation of function pointers.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #24 from ddobrev/master

Generation of function pointers