fix native libs build when smp is enabled
Merge pull request #5 from sg2342/master

fix native libs build when smp is enabled by @sg2342