MinGW related workaround: dealing with impossibility of making weak symbols