Replaced all malloc/realloc/calloc/free calls with own wrappers that check return values.
Added internal.h to dependent headers.
Allow multiple version constraints per dependency.
Implemented options -C, -H