MinGW: prefer C99 compliance by using replacement implementations.