Add ifdef for selftest in header file

See https://github.com/ARMmbed/mbedtls/pull/975
diff --git a/include/mbedtls/chacha20.h b/include/mbedtls/chacha20.h
index c33aef3..56ee57a 100644
--- a/include/mbedtls/chacha20.h
+++ b/include/mbedtls/chacha20.h
@@ -196,6 +196,7 @@
                             const unsigned char* input,
                             unsigned char* output );
 
+#if defined(MBEDTLS_SELF_TEST)
 /**
  * \brief           The ChaCha20 checkup routine.
  *
@@ -203,6 +204,7 @@
  * \return          \c 1 on failure.
  */
 int mbedtls_chacha20_self_test( int verbose );
+#endif /* MBEDTLS_SELF_TEST */
 
 #ifdef __cplusplus
 }