fix native libs build when smp is enabled