Fix elfwriter.cpp compile error due to wrong LIBDWARF_CONST_NAME

Implicit function pointer conversion is just a warning in C, it's
elevated to an error in C++. So you have to actually compile in C++ or
set the relevant compiler flags if you want to detect the error at
configure time.