Generated compilable wrappers for functions taking char*.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Converted const wchar_t* to string.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added UnmanagedFunctionPointerAttribute to generated delegates to avoid run-time crashes.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added suffixes to generated variables to avoid conflicts.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Fixed the generation of static function to use the correct return type.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a test for free functions with an indirect return type.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Generated the correct calling convention in the UnmanagedFunctionPointerAttribute of delegates.

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

More compile fixes