Fetch and the compilation warnings and errors using the new API rather than parsing the output.