Make sure global error string are global
Check for error on connect with mysqli
Fix other libraries as well
Merge pull request #41 from ozh/mysqli_connect_errno

Check for error on connect with mysqli
Merge pull request #40 from ozh/make_global

Make sure global error string are global