Add a compatibility function to use stereovar in c applications