fix error when building native libraries
Merge pull request #2532 from vmilea/build

fix error when building native libraries