Return better error codes
Return better error codes

* Define error codes at the top of Program.cs
* Add option to return error code if PInvokes found

mcneel/compat,mcneel/compat,mcneel/compat,mcneel/compat,mcneel/compat