diff --git a/maestro/drc.c b/maestro/drc.c
index b573175008fc715a7af0fd3a971ad91ebb37d626..6899332617f7dbf92274acefe465b72047c5d503 100644
--- a/maestro/drc.c
+++ b/maestro/drc.c
@@ -233,7 +233,7 @@ mstro_drc_insert_ofi(struct fi_info *fi, const mstro_drc_info info)
   
 #if FI_VERSION_GE(FI_VERSION(FI_MAJOR_VERSION,FI_MINOR_VERSION), FI_VERSION(1,5))
   // auth key is free()ed by fabric.c on teardown, so we need to duplicate it
-  fi->domain_attr->auth_key = dup_authkey(&info->auth_key);
+  fi->domain_attr->auth_key = (uint8_t*) dup_authkey(&info->auth_key);
   if(fi->domain_attr->auth_key==NULL) {
     return MSTRO_NOMEM;
   }
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 56ee19efeee8e5101dcbd1dda5f8ee3d47070098..25093e9caef2294cb5d98390c396adc81fa09606 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -50,7 +50,7 @@ AM_CPPFLAGS = $(TEST_INCLUDES) -DTOPSRCDIR=$(top_srcdir)
 
 LDADD = $(top_builddir)/libmaestro.la
 
-check_HEADERS = cheat.h
+check_HEADERS = cheat.h ecmwf_config.h
 
 TESTS = check_version check_init check_uuid \
 	coverage check_memlock \