improved compile error messaging