Add errno in exceptions where it's useful.