syslog: closelog() upon unloading

Not doing this is an error affecting in the case library is unloaded
manually.

Additionally:

* Replaced all _linux_ conditionals with corresponding reversed identifier
  for Windows, as Windows is really the odd-bird not Linux. This improves
  transparency.

* Corrected build-error regarding init/fini mechanism for Windows