for me replex was also failing, had to remove the -m32 flags:
--- a/Makefile 2007-06-19 05:30:08.000000000 -0400 +++ b/Makefile 2016-03-30 07:16:55.408860000 -0400 @@ -2,8 +2,8 @@ DISTNAME = replex-$(VERSION) TARNAME = $(DISTNAME).tar.gz INCS = -I.. -CFLAGS = -g -m32 -Wall -O6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVERSION=\"$(VERSION)\" -LDFLAGS = -m32 +CFLAGS = -g -Wall -O6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVERSION=\"$(VERSION)\" +LDFLAGS = LIBS = -L. MFLAG = -M OBJS = element.o pes.o mpg_common.o ts.o ringbuffer.o avi.o multiplex.o