configure.in: fixed a compilation problem on Windows

This patch implements configure checks for malloc.h and alloca.h instead of
relying on WIN32 specific macros.

Reported-By: Ramón García <ramon.garcia.f+syslog@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>