compilation fixes for reader