More portable stricter error reporting.

git-svn-id: http://yourls.googlecode.com/svn/trunk@851 12232710-3e20-11de-b438-597f59cd7555