Option for mysqli socket support

When I upgraded to version 1.11 on my openshift gear I noticed defining the host as ":/path/to/mysql.socket" didn't work anymore.  So I made some changes so that when using mysqli you can have the option to use a socket.