updated support for windows gcc with static link