fix build with native code

Install .cmx files and .a files