Add EXT_DEBUG macro which prints time with microseconds, process id
and thread id. Remove trailing spaces.