Necessary changes due to refactoring of libfovis.