Reworked building (improved cross-compilation support)
Changed fopen to work on non-posix platforms (windows); pow made unambigous
Event destructor moved to plugin-common
Changed fopen to work on non-posix platforms (windows)
Added (conditional) #include <windows.h> to server.cpp
LIBRARY_EXTENSION used instead of ".so"; improved error reporting
Added default definition of MSG_MORE and MSG_NOSIGNAL (defined to 0 on non-Linux OS)
".dll" changed to LIBRARY_EXTENSION, just in case
Events temporarily removed from client (they weren't used anyway)
Removed unneeded #include <malloc.h>
Added #include <cstdio>