Squelch compile warnings in OS X 10.9
Use proper connect call in OS X 10.9 and higher