added build-specific config header

- configure file in cmake
removed the add_definitions commands

- changed cmake variable names to #def names
typo
Removed unused lp pointers in tw_event

- these were duplicates
- dest_lp and src_lp were probably going to be gid’s
put config.h in source

- not sure if we want it there