call c api by dynamically loading it's library and without code change