Ensured the UnmanagedFunctionPointerAttribute is always set on generated delegates.

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

Ensured the UnmanagedFunctionPointerAttribute is always set on generated delegates