Add aborts to catch frees of bad pointers.

In addition, modify the makefiles slightly to use specific names
not generic ones.

Bug: 21873627
(cherry picked from commit 4e5c283ab0d7de8f5c851a04cebbb414a340dc40)

Change-Id: I341747d3868025a16973e59480f1c415bea0fd76
4 files changed