- Fixed a whole bunch of dependencies on defines between files, examples and tests

diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index d82f5ca..7e6e4c6 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -322,12 +322,14 @@
 
 static int ssl_parse_server_key_exchange( ssl_context *ssl )
 {
+#if defined(POLARSSL_DHM_C)
     int ret;
     size_t n;
     unsigned char *p, *end;
     unsigned char hash[36];
     md5_context md5;
     sha1_context sha1;
+#endif
 
     SSL_DEBUG_MSG( 2, ( "=> parse server key exchange" ) );