Add Clang compiler options in cmake
Add test for memory malloc fail handling

The test-memory-fail.c implement fault injection for malloc() and calloc() via
RTLD_NEXT.