Link system libs statically in case of static musl target
Compare changes
For building small, self contained binaries, what often happens is that we build our executable in an alpine linux container (musl libc) and link all libraries statically. This MR adds support for that use case.