Fixes for ogrlineref