hooks: add __cxa_atexit

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
TRACE usage cleanups

removed duplicate __PRETTY_FUNCTION__ (already taken care by TRACE)
removed trailing newlines

in wayland_window:
  trace the format/size changes and buffer id

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #106 from groleo/for-upstream

add __cxa_atexit hook and cleanup TRACEs