Improve compile error reporting