Add static linkflags to legacy toolchains mkspecs