configure.ac: Fix detection of MinGW

This is more consistent with other checks in the file and fixes #75.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
AUTHORS : Add contributors.