[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/configure.in b/configure.in
index edcbe3b..8076c34 100644
--- a/configure.in
+++ b/configure.in
@@ -7,6 +7,7 @@
 AC_PROG_MAKE_SET
 AC_PROG_CC
 AC_PROG_INSTALL
+AC_PROG_RANLIB
 AM_PROG_LEX
 
 dnl checks for libraries