Test the availability of structure members during file generation

For example, on OpenBSD there's no "c_line" member. This should make
things a little more portable.

Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>