Added better hack for linking to SSL library statically