Fix up error message
Reindent build files.
Reindent *.c and *.h and delete trailing whitespace.
Check return values of asprintf().
Reindent after code fix.