Added UnamanagedFunctionPointer attribute check for delegates along with CallingConvention.Cdecl