Update extconf to produce viable makefile on mingw