Fix ssl on OS X and Windows