mercury_init from c_standalone sample