Check where the -mwindows flag is needed

Currently we are setting the -mwindows flag by default in CFLAGS and LDFLAGS defined in rbm.conf, which are currently used (through var/configure_opt) in tor, gmp, libevent and go.

We should check where this flag is really needed, and only set it there.