Made changes to make for building against recent GCC
Made changegs to redit.c now %100 functional