undeprecate "global" scope and improve some error messages in ecpp parser