Fix linux|mingw shared|static build