Use ifndef

Use #ifndef instead of #if !defined. This is more standard form (see for
example iostream file).
No functional change.