unix.c: Move log_link() calls before plugin initialization
This ensures that plugin load errors are logged instead of thrown away