compiler/libec: (#402, #772) Improved reporting syntax errors