Make standard C/C++ libraries static for MinGW