added -lm -lz to LDFLAGS for 3298 to build