few changes to make the code compatible
first MingW tests

still W-I-P !!!