make autogen.sh work with variables with spaces

eg ./autogen.sh CXXFLAGS="-O0 -g3"
Don't use -fPIC on mingw

it emits a warning for every file stating that -fPIC is ignored
Update .gitignore