libgsmhr: Use patch instead of 'sed'

Patches are without function-name and without context to minimize what
we have to include.

The current patchset does exactly what the previous 'sed' did, but this
will make it easier to add more.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/libgsmhr/Makefile.am b/libgsmhr/Makefile.am
index df12c53..fa62bfe 100644
--- a/libgsmhr/Makefile.am
+++ b/libgsmhr/Makefile.am
@@ -10,10 +10,9 @@
 
 ${REFSRC_PATH}/.downloaded:
 	$(srcdir)/fetch_sources.py "${REFSRC_PATH}"
-	for f in "${REFSRC_PATH}"/*.{c,h}; do	\
-		sed -i -e"s/round/round_l2s/" "$$f";	\
+	for p in "$(srcdir)/patches"/*.patch; do	\
+		cat "$$p" | patch -p0 ;			\
 	done
-	sed -i -e"s/long int/int/" -e"s/long/int/" "${REFSRC_PATH}/typedefs.h"
 	touch $@
 
 $(REFSRC_SRC) libgsmhr.c: ${REFSRC_PATH}/.downloaded