Fixed problem with C++ compiler not showing compiler errors. Closes #392