Added SuppressUnmanagedCodeSecurity attribute on created PInvoke methods