Simplify LDFLAGS handling for MinGW.