added reallocarray.c for protability; changed Makefile accordingly