[build] Create a libbsc.a as noinst_LIBRARY, link bsc_hack and tests against it

Link the tests against the libbsc.a to avoid most of the breakage
when creating new symbols.
diff --git a/tests/gsm0408/Makefile.am b/tests/gsm0408/Makefile.am
index 59a9599..51463dc 100644
--- a/tests/gsm0408/Makefile.am
+++ b/tests/gsm0408/Makefile.am
@@ -1,4 +1,5 @@
 INCLUDES = $(all_includes) -I$(top_srcdir)/include
 noinst_PROGRAMS = gsm0408_test
 
-gsm0408_test_SOURCES = gsm0408_test.c $(top_srcdir)/src/gsm_04_08.c $(top_srcdir)/src/debug.c
+gsm0408_test_SOURCES = gsm0408_test.c
+gsm0408_test_LDADD = $(top_builddir)/src/libbsc.a -ldbi