Just us gcc instead of gcc-4.2
Only set SSL_CERT_FILE if it exists on the mac