Build native library and add a test for large memory