fix build for TDM MinGW64