make sure libosmocom builds when cross-compiling for ARM without OS

This is required to build the library and be able to use it from
within OsmocomBB.
diff --git a/libosmocore/src/gsm_utils.c b/libosmocore/src/gsm_utils.c
index 85f7839..b0a66a6 100644
--- a/libosmocore/src/gsm_utils.c
+++ b/libosmocore/src/gsm_utils.c
@@ -31,6 +31,8 @@
 #include <stdio.h>
 #include <errno.h>
 
+#include "../config.h"
+
 /* GSM 03.38 6.2.1 Charachter packing */
 int gsm_7bit_decode(char *text, const uint8_t *user_data, uint8_t length)
 {
@@ -190,6 +192,7 @@
 	return rxlev;
 }
 
+#ifdef HAVE_EXECINFO_H
 #include <execinfo.h>
 void generate_backtrace()
 {
@@ -209,3 +212,4 @@
 
 	free(strings);
 }
+#endif