more #ifdef guards, to allow flow engine without linsolv