added a common header for defs and typedefs. Even better sig handling