added -static-libgcc flag for windows