try to link symlink and use a define on error

fixes compiling with Minimalist GNU win32 (cross) compiler 4.2.1, which
defines symlink, but doesn't implement it.
workaround for missing #warning on windows
build silently by default
check for alloca