Fix compilation errors in parser