--- a/libsial/Makefile
+++ b/libsial/Makefile
@@ -53,7 +53,7 @@
 	./mkbaseop > baseops.c
 	$(CC) $(CFLAGS) -c baseops.c
 
-mkbaseop.c sial_member.o sial_op.o sial_stat.o sial_type.o y.tab.o : sial.tab.h
+mkbaseop.c sial_api.o sial_member.o sial_op.o sial_stat.o sial_type.o y.tab.o : sial.tab.h
 
 lex.sial.o: lex.sial.c sial.tab.c sial.h
 	$(CC) $(CFLAGS) -c lex.sial.c
--- a/libklib/kl_savedump.c
+++ b/libklib/kl_savedump.c
@@ -24,6 +24,10 @@
 #include <unistd.h>
 #include <linux/stddef.h>
 
+#ifndef offsetof
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif
+
 static int kl_check_type_dev(char *);
 static int kl_check_type_dir(char *);
 static int __kl_dump_retrieve_reg(int,int,char*,int,int);
