Fix N1QL compilation