Fix OpenMP link error on MinGW.