Added support for Mono/Linux

Fixed tab/indentation

Fixed small bug on closing library

Modified SafeLibraryHandle to allow initialization from IntPtr

Removed MONO define