configure.ac: Define MINGW_HAS_SECURE_API under mingw to get
_putenv_s() declared in stdlib.h.
configure.ac: Define MINGW_HAS_SECURE_API under mingw to get
_putenv_s() declared in stdlib.h.