Added native event support

Half-working in windows still

Signals now working properly, except for a zombie process

Manual events completely working, except process shutdown

More tests, TCP/Events fully working on windows

OSX fixes

Added OSX compatibility

Fix connection shutdown errors