Building a skeletal multi file sketch fails -- why?

The key is in this line:

=== lib.c: =======================================

Rename the file to have a .cpp extension, instead.