perf: fix building with musl when NLS is enabled