ENH: give better error message when compilation failed with Waf backend.