Hack up module import like mad

This is a workaround for the loss of PyCObject
diff --git a/OpenSSL/__init__.py b/OpenSSL/__init__.py
index 6f393ff..e88b141 100644
--- a/OpenSSL/__init__.py
+++ b/OpenSSL/__init__.py
@@ -8,5 +8,16 @@
 """
 pyOpenSSL - A simple wrapper around the OpenSSL library
 """
-import rand, crypto, SSL, tsafe
-from version import __version__
+
+import sys
+orig = sys.getdlopenflags()
+sys.setdlopenflags(2|256)
+from OpenSSL import crypto
+sys.setdlopenflags(orig)
+del sys, orig
+
+from OpenSSL import rand, SSL, tsafe
+from OpenSSL.version import __version__
+
+__all__ = [
+    'rand', 'crypto', 'SSL', 'tsafe', '__version__']