Deal with -fPIC better and better mingw32 support