Refined to ensure that redefinition only occurs in Win64 (mingw-w64)