gcc options and mingw: move a gcc options detection from a makefile to the configure