Added License and fixed StyleCop issue CA1901 in NativeMethods