Fix compilation of pattern matchinq