I found out that configuring with "--extra-ldflags=-mno-windows" works around this problem. if someone can edit the configure script to do it by default, good, else I will be ok with this trick