make Makefile more cygwin compatible
make it compile with generalised addlistener