Fix order of members
Fix dependencies for openssl.
Reorder fields to fix warnings.