Break out DllMain from crypto/cryptlib.c and use it in shared libs only