linux*: misc fixes to allow musl builds.