Sanity program to test basic behavior on .net and mono
at least for the versions I tested, libzmq4 on a x64 linux (compiled from source and from debian pkg sources), still expected a struct to use int as opposed to long - which was true on windows. changes were made to accomodate that.

also, added additional code to preemptively dispose the device in the case of exception/eterm