Fix linking to imported libraries test.

Make a C executable instead of attempting to make a C++ static
library (and not really succeeding). This was introduced in
commit 894f52f3 (Handle INTERFACE properties transitively for
includes and defines., 2012-09-23).
Merge topic 'fix-imported-lib-linking-test' into next

93034a8 Fix linking to imported libraries test.