removed unnecessary assignment of LIBS - the EX_CHECK_ALL did what is needed on its own...
fixed stupid memory allocation errors (size was calculated wrong)